package service.Impl;

import dao.Impl.UserDaoIpml;
import dao.UserDao;
import entity.User;
import service.UserService;

import java.util.List;

/**
 * @Author: DELL
 * @Since: 2024/10/8 19:23
 * @Description:
 */
public class UserServiceImpl implements UserService {
    UserDao userDao=new UserDaoIpml();
    @Override
    public int register(String account, String nickName, String password, int gender, String idCardNo, String email, String phone) {
        return userDao.register(account,nickName,password,gender,idCardNo,email,phone);
    }

    @Override
    public List<User> login(String name, String pwd) {
        return userDao.login(name,pwd);
    }
}
